<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
</head>
<body>
    用户列表
    <a th:href="@{/user/userAdd}">添加用户</a>
    <table>
        <thead>
            <tr>
                <td>id</td>
                <td>用户名</td>
                <td>操作</td>
            </tr>
        </thead>
        <tbody>
            <tr th:each="user:${userList}">
                <td th:text="${user.id}"></td>
                <td th:text="${user.userName}"></td>
                <td>
                    <a th:href="@{${'/user/userEdit/'+user.id}}" th:text="修改"></a>
                </td>
            </tr>
        </tbody>
    </table>
</body>
</html>